package com.nullyb.springbootshardingjdbc.service.impl;

import com.nullyb.springbootshardingjdbc.dao.CommonMapper;
import com.nullyb.springbootshardingjdbc.entity.Common;
import com.nullyb.springbootshardingjdbc.service.ICommon;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CommonImpl implements ICommon {

    @Resource
    private CommonMapper commonMapper;

    @Override
    public List<Common> findAll() {
        return commonMapper.findAll();
    }
}
